package net.melon.page.pojo;

import net.esj.basic.pojo.AbstractPojo;

public class Module  extends AbstractPojo<Integer>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8132371662944639425L;

	public static enum ModuleState{
		//冻结
		FREEZE(-1),
		//正常
		NORMAL(1);
		
		private int state;

		private ModuleState(int state) {
			this.state = state;
		}

		public int getState() {
			return state;
		}
		
		public static ModuleState valueOf(int state){
			for(ModuleState ms : values()){
				if(ms.getState()== state){
					return ms;
				}
			}
			return null;
		}
		
	}
	
	private Integer id;
	
	private String name;
	
	private String subName;
	
	private int order;
	
	private int state = 1;//1:正常，-1冻结

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSubName() {
		return subName;
	}

	public void setSubName(String subName) {
		this.subName = subName;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	@Override
	public Integer getId() {
		return id;
	}

	@Override
	public void setId(Integer id) {
		this.id = id;
	}
	
}
